<template>
	<view>
		<view class="order-content">
			<!-- 主任务信息 -->
			<view style="margin-bottom: 40rpx;">
				<view class="detail-title">
					<text>考核信息</text>
				</view>
				<!-- <view class="detail-item">
					<text class="left">任务名称：</text>
					<view class="right-content">{{taskDetail['任务名称']}}</view>
				</view> -->
				<view class="content-item">
					<text class="item-name">考核类型：</text>
					<view class="right-content">{{ workInfo['考核类型名称'] }}</view>
				</view>
				<view class="content-item">
					<text class="item-name">考核范围：</text>
					<view class="right-content">{{ workInfo['考核范围名称'] }}</view>
				</view>
				<view class="content-item">
					<text class="item-name">考核小区：</text>
					<view class="right-content">{{ workInfo.考核小区.map(x => x.项目名称).join('、') }}</view>
				</view>
				<view class="content-item">
					<text class="item-name">考核频次：</text>
					<view class="right-content">每月考核{{ workInfo['考核频率'] }}次</view>
				</view>
				<view class="content-item">
					<text class="item-name">备注信息：</text>
					<view class="right-content">{{ '' }}</view>
				</view>
			</view>
			<!-- 考核事项 -->
			<view>
				<view class="detail-title">
					<text>考核事项</text>
				</view>
			</view>
			
		</view>
		<view style="margin-top: -140rpx;">
			<work-table :list="workInfo['考核事项']"></work-table>
		</view>
		
	</view>
</template>

<script>
	import workTable from '../components/workTable.vue'
	export default {
		components: {
			workTable
		},
		data() {
			return {
				workInfo: {}
			}
		},
		onLoad(options) {
			this.getWorkInfo(+options.id)
		},
		methods: {
			getWorkInfo(id) {
				this.$http2.post('transactionCompete/assessmentManagement/info',{id}).then(res => {
					if(res.code === 10000) {
						// console.log(res)
						this.workInfo = res.data
					}
				})
			}
		}
	}
</script>

<style lang="scss" scoped>
@import  '../../style/info.scss';
</style>
